package com.ychong.service;

import com.ychong.dao.ElecTypeDto;
import com.ychong.service.mapper.ElecTypeMapper;
import com.ychong.service.mapper.FileMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ElecTypeServiceImpl implements ElecTypeService {
    @Autowired
    ElecTypeMapper elecTypeMapper;
    @Override
    public int addElecType(ElecTypeDto item) {
        return elecTypeMapper.addElecType(item);
    }

    @Override
    public int deleteElecTypeById(int id) {
        return elecTypeMapper.deleteElecTypeById(id);
    }

    @Override
    public int updateElecType(ElecTypeDto item) {
        return elecTypeMapper.updateElecType(item);
    }

    @Override
    public List<ElecTypeDto> selectAll() {
        return elecTypeMapper.selectAll();
    }
}
